#include "Relation.h"
#include <exception>

namespace SemanticModel
{
	wchar_t* Relation::nameOf(const RelationType relation)
	{
		switch (relation)
		{
		case ContainsRelation:
			return L"contains";
		case IsRelation:
			return L"is";
		case ImplementationRelation:
			return L"implements";
		case CanRelation:
			return L"can";
		case SpecifyRelation:
			return L"specify";
		case UsesRelation:
			return L"uses";
		case DecoratesRelation:
			return L"decorates";
		default:
			return L"<invalid>";
			//throw std::exception("Invalid relation type");
		}
	}
}
